package com.yc.demo;


import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
//@AutoConfiguration
@ConditionalOnProperty(name = "hello.enabled", havingValue = "true")
@EnableConfigurationProperties(HelloProperties.class)
@ComponentScan(basePackages = "com.yc.demo")
public class HelloAutoConfiguration {
}